f8e1e2e776b4a288143ac197816e40ada2d221c6,core/src/com/ray3k/skincomposer/UndoableManager.java,DuplicateCustomPropertyUndoable,DuplicateCustomPropertyUndoable,#Main#CustomProperty#String#PropertyType#,701
Before Change
public DuplicateCustomPropertyUndoable(Main main, CustomProperty originalProperty, String propertyName, PropertyType propertyType) {
this.main = main;
String name = main.getRootTable().getClassSelectBox().getSelected();
for (CustomClass foundClass : main.getJsonData().getCustomClasses()) {
if (foundClass.getDisplayName().equals(name)) {
try {
customClass = foundClass;
customProperty = originalProperty.clone();
break;
} catch (CloneNotSupportedException e) {
Gdx.app.error(getClass().getName(), "Error creating clone of custom property.", e);
main.getDialogFactory().showDialogError("Clone Error", "Failure to clone custom property. View log?");
}
After Change
customProperty = originalProperty.copy();
customClass = (CustomClass) main.getRootTable().getClassSelectBox().getSelected();
}